package com.qky.controller.postController;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.qky.service.regionService.RegionService;

@Controller
public class ShowPostController {
	
	@Resource
	RegionService regionService;
	
	@RequestMapping(value = "/showPost",method=RequestMethod.GET)
	public String showPostGet(
		ModelMap map,
		HttpServletRequest request
	) {
		List list=regionService.getRegionListByParent("0");
		map.put("prList",list);
		return "post/showPost";
	}
}
